package com.casstime.ec.cloud.values.amountPromotion;

import java.math.BigDecimal;
import java.util.List;

import com.casstime.ec.cloud.values.Value;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import lombok.Getter;
import lombok.Setter;
/**
 * ClassName: AmountPromotion 
 * Function: (满减活动实体类)
 * Reason: ADD REASON(可选).
 *  
 * @author wu.chen 
 * 2018年2月28日 下午1:45:45
 * @version   
 * @since JDK 1.8
 */
@JsonIgnoreProperties(ignoreUnknown = true)//忽略类中不存在的字段，比如json字符串中有个aaa:123,则不会进行转换
@JsonInclude(value = Include.NON_NULL)
public class OrderPromotionParam implements Value {
	
	@Getter @Setter private String id;
	
	//促销活动ID 必传
	@Getter @Setter private String amountPromotionId;
	
	//促销活动类型 必传
	@Getter @Setter private String promotionType;
	
	//店铺ID 非 必传
	@Getter @Setter private String productStoreId;
	
	//能否满足条件
	@Getter @Setter private boolean available;
	
	//不符条件时的原因
	@Getter @Setter private String reason;
	
	//当前满足的活动梯次
	@Getter @Setter private AmountPromotionConfigAmount currentPromotionAmount;
	
	//下一档满足的活动梯次
	@Getter @Setter private AmountPromotionConfigAmount nextPromotionAmount;
	
	//满减活动实际抵扣金额总额
	@Getter @Setter private BigDecimal discCountAmount;
	
	//符合促销的商品 必传
	@Getter @Setter private List<OrderProductParam> productPrams;
	
	@Override
	public boolean validate() {
		// TODO Auto-generated method stub
		return false;
	}
}
